import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: "Px框架",
  description: "一个 uniapp 快速开始模版，使用 uniapp + vue3 + typescript + unocss + tmui",
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      { text: 'Home', link: '/' },
    ],
    sidebar: [
      {
        text: "入门指引",
        items: [
          {
            text: "px是什么",
            link: '/base/start/index'
          },
          {
            text: "安装",
            link: '/base/start/install'
          },
          {
            text: "目录结构",
            link: '/base/start/tree'
          },
          {
            text: "git提交规范",
            link: '/base/start/git'
          }
        ],
      },
      {
        text: "编程风格",
        items: [
          {
            text: "概述",
            link: '/base/style/index'
          },
          {
            text: "组件库",
            link: '/base/style/component'
          },
          {
            text: "样式库",
            link: '/base/style/css'
          }
        ],
      },
      {
        text: '框架基础',
        items: [
          {
            text: '路由',
            items: [
              {text: '路由管理和权限验证', link: '/base/router/index'},
              {text: '工具类', link: '/base/router/util'},
              {text: '枚举', link: '/base/router/enum'},
              {text: '使用方式', link: '/base/router/use'},
            ]
          },
          {
            text: '请求',
          }
        ],
      },
      {
        text: '工具类',
        items: [
          { text: '枚举', link: '/utils/enum' },
          { text: '平台', link: '/utils/platform' },
        ]
      }
    ],

    socialLinks: [
      { icon: 'github', link: 'https://github.com/vuejs/vitepress' }
    ]
  }
})
